<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- 导入semantic的样式 -->
<jsp:include page="head.jsp">
<jsp:param value="回收站" name="title"/>
</jsp:include>

</head>
<body>
<jsp:include page="uimain.jsp"></jsp:include>
<div id="main-content" >
	<div class="container">
		<div class="row">
			<div id="content" class="col-lg-12">
				<div class = "dao">	
				<p>回收站</p>								
				</div>
				<div class = "content">	
					<table class="ui celled striped table ">
						<thead>
							<tr>
								<th colspan="5" style = "font-size: 20px;">职位列表
								
									<div class="ui buttons a">
									
										<button class="ui red button" id="recyleDelete">
											<i class="icon trash"></i> 批量还原
										</button>
									</div>
								
								</th>					
							</tr>
						</thead>
						<tbody>
			
							<tr>
								<td style = "width:80px">
									<div  class="ui ribbon ">
										<input type="checkbox" id="checkAll" >
									</div>
								</td>
								<td style = "width:100px">职位编号</td>
								<td style = "width:200px">职位名称</td>
								<td>职位描述</td>
								<td>&nbsp;</td>
							</tr>
							<c:forEach items="${positionList }" var="post">
							
								<tr>
									<td class="collapsing">
										<div  class="ui ribbon">
											<input class="item-check" type="checkbox" value="${post.postId }" class = "input">
										</div>
									</td>
									<td>${post.postId}</td>
									<td>${post.postName}</td>
									<td>${post.postDescribe}</td>
									<td>
									<a onclick="return confirm('确认还原？')"
										href="position/delete?id=${post.postId}&postStatus=0"> <i></i> 还原
									</a></td>
								</tr>
							</c:forEach>
							<c:if test="${empty positionList}">
								<tr>
									<td style="text-align: center;" colspan="5">回收站暂无记录</td>
								</tr>
							</c:if>
						</tbody>
					</table>
					
					<c:if test="${totalPage > 1 }">
						<div class="page">
							<a <c:if test="${page!=1}">href="position?page=1${queryString}"</c:if>
								class="${page == 1?'disable':''}">首页</a> <a
								<c:if test="${page!=1}">href="position?page=${page-1}${queryString}"</c:if>
								class="${page == 1?'disable':''}">上一页</a> <a
								<c:if test="${page!=totalPage}">href="position?page=${page+1 }${queryString}"</c:if>
								class="${page == totalPage?'disable':''}">下一页</a> <a
								<c:if test="${page!=totalPage}">href="position?page=${totalPage }${queryString}"</c:if>
								class="${page == totalPage?'disable':''}">最后一页</a> <span>
								${page}/${ totalPage} </span>
						</div>
					</c:if>
				</div>
			</div>
		</div>
	</div>	
	</div>		
</body>
</html>